﻿using System;

namespace BSharp.Compiler
{
	public class CallExpression : AstNode
	{
		public readonly AstNode Target;
		public readonly ArgumentList Arguments;

		public CallExpression (SourceLocation location, AstNode target, AstNode arguments)
			: base (location)
		{
			Target = target;
			Arguments = arguments as ArgumentList;
		}

		public override void Visit (AstVisitor visitor)
		{
			visitor.Accept (this);
		}
	}
}

